﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MealEdit.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.MealEdit"  ValidateRequest="False" %>
<%@ Register TagPrefix= "fc" TagName= "FileControl" Src= "~/SystemManage/Control/FileControl/FileControl.ascx " %> 
<%@ Register TagPrefix= "ddt" TagName= "DropDownTreeControl" Src= "~/SystemManage/Control/ddt/DropDownTreeControl.ascx " %> 

<%@ Register src="~/SystemManage/Control/SinglePictureControl.ascx" tagname="SinglePictureControl" tagprefix="spc" %>

<%@ Register src="/SystemManage/Control/CheckBoxControl/CheckBoxControl.ascx" tagname="CheckBoxControl" tagprefix="uc1" %>

<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Basics/MealInfo/MealEdit.aspx">
    
<!-- 需保存的全局变量 -->
<asp:label runat="server" ID="_id" Visible="False" ></asp:label>

<div class="pageContent">
    <div class="pageFormContent" layoutH="56">
    
        <dl class="nowrap">
            <dt>商品名称：</dt>
            <dd>
                <asp:textbox runat="server" id="tb_name" Width="300px" class="required"></asp:textbox>（建议10个汉字以内）
            </dd>
        </dl>
        
		<dl class="nowrap">
            <dt>商品分类：</dt>
            <dd>
            <ddt:DropDownTreeControl id= "ddl_producttype" runat= "Server" DataFromUrl="/SystemManage/Control/ddt/TreeData_Category.aspx" Kind="restaurant"/>(点击放大镜选择分类)</dd>
        </dl>
		<dl class="nowrap">
            <dt>商品代码：</dt>
            <dd>
                <asp:textbox runat="server" id="tb_productno" class="required"></asp:textbox>(建议使用有规律的英文字母和数字组合代码,如：SP201312310001）
            </dd>
        </dl>
		<dl class="nowrap">
            <dt>简单描述：</dt>
            <dd>
                <asp:textbox runat="server" width="100%" id="tb_shortdesc"></asp:textbox>
            </dd>
        </dl>
		<dl>
            <dt>销售价格：</dt>
            <dd>
                <asp:textbox runat="server" class="number" id="tb_sprice">0</asp:textbox>&nbsp;元&nbsp;
            </dd>
        </dl>
        <dl>
            <dt>是否推荐：<asp:checkbox runat="server" class="checkbox" id="cbxCommend" checked></asp:checkbox></dt>
            <dd>
            </dd>
        </dl>
		<dl class="nowrap">
            <dt>商品图片：</dt>
            <dd>（支持JPG、PNG格式，较好的效果为200*200）</dd>
        </dl>
        <dl class="nowrap">
            <dt>&nbsp;</dt>
            <dd><spc:SinglePictureControl ID="fc_open" runat="server" ImageWidth="360" ImageHeight="200" FileCountLimit="1" FileFilters="*.jpg;*.jpeg;*.bmp;*.png;*.gif" FileDesc="图片"/></dd>
        </dl>
		<dl class="nowrap">
            <dt>商品介绍：</dt>
            <dd>
            <textarea class="editor" name="txtSummary" rows="10" cols="100" style="width:100%" id="txt_description" runat="Server"
                    uplinkurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=zip,rar,txt" uplinkext="zip,rar,txt"
                    upimgurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=jpg,jpeg,gif,png" upimgext="jpg,jpeg,gif,png"
                    upflashurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=swf" upflashext="swf"
                    upmediaurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=avi" upmediaext="avi">
            </textarea>
            </dd>
        </dl>
	</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
		</ul>
	</div>  
</div>
</form>